﻿using System;

using Cookbook.Services.Core.Persistency.NHibernate;

namespace Cookbook.Setup
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Creating the database...");
            var sessionFactoryManager = new NHibernateSessionFactoryManager();
            if (!sessionFactoryManager.DatabaseExists())
            {
                sessionFactoryManager.CreateDatabase();
            }
        }
    }
}